#include "Stack.h"

void STTest01()
{
	ST s;
	STInit(&s);
	STPush(&s, 1);
	STPush(&s, 2);
	STPush(&s, 3);
	STPush(&s, 4);
	printf("%d \n", STTop(&s));

	STPop(&s);
	printf("%d \n", STTop(&s));
	STPop(&s);
	STPop(&s);

	printf("%d \n", STTop(&s));
	STDestroy(&s);
}
void STTest02()
{
	ST s1;
	STInit(&s1);
	STPush(&s1, 1);
	STPush(&s1, 2);
	printf("%d\n", STTop(&s1));
	STPop(&s1);
	STPush(&s1, 3);
	STPush(&s1,4);
	while (!STEmpty(&s1))
	{
		printf("%d\n", STTop(&s1));
		STPop(&s1);
	}
	STDestroy(&s1);
}
int main()
{
	//STTest01();
	STTest02();
	
	return 0;
}
//